package com.nix.web.databases.service.word.emotion;

import com.nix.web.databases.mapper.word.emtion.NounEmtionMapper;
import com.nix.web.databases.pojo.word.emtion.Emtion;
import com.nix.web.databases.pojo.word.emtion.NounEmtion;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Title: Emotional-Analysis
 * Date: Create in 2018/2/10 14:09
 * Description:
 *
 * @author Jundger
 * @version 1.0
 */
@Service
public class NounEmtionService implements NounEmtionMapper {

    @Autowired
    NounEmtionMapper nounEmtionMapper;

    @Override
    public Integer getEmotionId(Integer id) throws Exception {
        return nounEmtionMapper.getEmotionId(id);
    }

    @Override
    public int addEmotion(Emtion emtion) throws Exception {
        return nounEmtionMapper.addEmotion(emtion);
    }

    @Override
    public int addNounEmotion(NounEmtion nounEmtion) throws Exception {
        return nounEmtionMapper.addNounEmotion(nounEmtion);
    }

    @Override
    public int saveMarkResult(Integer word, Integer emotion, Integer user) throws Exception {
        return nounEmtionMapper.saveMarkResult(word, emotion, user);
    }

    @Override
    public boolean add(NounEmtion nounEmtion) throws Exception {
        return false;
    }

    @Override
    public boolean delete(Integer id) throws Exception {
        return false;
    }

    @Override
    public boolean update(NounEmtion nounEmtion) throws Exception {
        return false;
    }

    @Override
    public NounEmtion select(Integer id) throws Exception {
        return null;
    }
}
